package page.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class ExController {
		
	@RequestMapping("/testRedirect1")
	public String testRedirect() {
		System.out.println("重定向");
		return "redirect:/index.jsp";
	}
	
	@RequestMapping("/testForWard")
	public String testForWard() {
		System.out.println("页面转发");
		return "forward:/view/success.jsp";
	}
		
}
